package io.renren.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;

/**
 * 导出excel形式的数据清单模板
 *
 * @author huangjiang <huangjiang1026@gmail.com>
 * @date 2020-05-21 19:06
 */
@Data
public class DataChecklist {
    /**
     * 表的备注
     */
    @ColumnWidth(40)
    @ExcelProperty(value = "表中文名", index = 0)
    private String tableComment;
    /**
     * 表的名称
     */
    @ColumnWidth(20)
    @ExcelProperty(value = "表名", index = 1)
    private String tableName;
    /**
     * 列备注
     */
    @ColumnWidth(40)
    @ExcelProperty(value = "字段中文名", index = 2)
    private String columnComment;
    /**
     * 列名
     */
    @ColumnWidth(20)
    @ExcelProperty(value = "字段英文名", index = 3)
    private String columnName;
    /**
     * 列数据类型
     */
    @ColumnWidth(15)
    @ExcelProperty(value = "类型", index = 4)
    private String dataType;
    /**
     * 列长度
     */
    @ColumnWidth(10)
    @ExcelProperty(value = "长度", index = 5)
    private String columnLength;
    /**
     * 列主键
     */
    @ColumnWidth(10)
    @ExcelProperty(value = "是否主键", index = 6)
    private String columnKey;
    /**
     * 列默认值
     */
    @ColumnWidth(15)
    @ExcelProperty(value = "值空间", index = 7)
    private String columnDefault;
    /**
     * 列是否允许空
     */
    @ColumnWidth(10)
    @ExcelProperty(value = "是否可空", index = 8)
    private String columnNullable;
    /**
     * 备注
     */
    @ColumnWidth(10)
    @ExcelProperty(value = "备注", index = 9)
    private String columnRemark;
}
